<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
        #div1{
        	width:100px;height:100px;background:blue;position: absolute;top:50px;left:0;
        }
	</style>
	<script type="text/javascript">
        window.onload = function(){
        	setInterval(function(){
        		var oDiv = document.getElementById('div1');
                oDiv.style.left = oDiv.offsetLeft+10+'px';
        	},30);
        }
	</script>
</head>
<body>

  <div id="div1"></div>
	
</body>
</html>